﻿using System;

namespace Twofolders
{
    static internal class Utility
    {
        static internal bool isDirectoryValid(string path)
        {
            return System.IO.Directory.Exists(path);
        }

        static internal string AppendDirectorySeparator(string path)
        {
            if (path.Substring(path.Length - 1) != System.IO.Path.DirectorySeparatorChar.ToString())
            {
                path += System.IO.Path.DirectorySeparatorChar;
            }

            return path;
        }
    }
}
